home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Light ROM 1
/
LIGHT-ROM 1 (Amiga Library Services)(1994).iso
/
ffdisks
/
d926.lha
/
JcGraph
/
HelpFile
/
fileformat.hlp
< prev
next >
Wrap
Text File
|
1993-10-07
|
2KB
|
42 lines
\font Helvetica 15
\title File Format...
\bold
File Format...
\bold
Here is the file format recognized by JcGraph: In this example, we will
create a graph of 3 lines by 3 columns.
It is important that it should not produce a file containing special control
characters that would not be recognized by JcGraph (stay ASCII international).
After your text editor is loaded, start by entering "1002" (without the
delimiters). This sequence help JcGraph identify the file type, to be sure
that it is really compatible. Note that all value should be comma-separated.
Next, enter the number of column that your file will contain, "3" in our
example. Do the same thing for the number of line. Follows a number which
will set the space between each cotation in the scale on the side of the
graph; for example, if your data range from 0 to 100 and you specify 25,
the cotation scale will output "0","25","50","75","100". This number use
the same value unit as the data itself.
The next number (floating point), is the one by which every cotation
value will be multiplied ; for example, if you enter "1.24", each cotation
of the scale will be muliplied by 1.24. This permits to access floating
point value without changing the data itself. Note that only 3 decimals
positions will be kept for now and that a value of 0 will result in an
integer form (ie no decimal point).
The next step is the value entry. As we chose to produce a 3 by 3 data
file, there will be 9 consecutive values (they can be on the same line but
should always be comma-separated).
The 3 next value are text strings that will identify your columns (they
should always be filled). Same procedure for each line. Note that the
orientation is always the same. Rows represents variation and lines are
diferent products type.
Here is the resulting data file from the example:
1002,
3,3,10,0,
10,20,30,
50,60,60,
15,32,17,
Jan,Fev,Mar,
Gaz,Oil,Fer,